﻿using Shared.Domain;
using System.ComponentModel.DataAnnotations;

namespace ProductManagement.Domain
{
    /// <summary>
    /// 子商品的具体规格
    /// </summary>
    public class ProChildSpec : LongEntityOnlyDelete
    {


        /// <summary>
        /// 所属的规则乘积Id
        /// </summary>
        public long ProChildId { get; private set; }


        /// <summary>
        /// 所属规规Id
        /// </summary>
        public long SpecId { get; private set; }


        [MaxLength(50)]
        public string SpecName { get; private set; }

        /// <summary>
        /// 所属规规值Id
        /// </summary>

        public long SpecValueId { get; private set; }

        [MaxLength(50)]
        public string SpecValueName { get; private set; }


        public ProChildSpec() { }

        public ProChildSpec(long specId, string specName, long specItemId, string specItemName)
        {
            this.SpecId = specId;
            this.SpecName = specName;
            this.SpecValueId = specItemId;
            this.SpecValueName = specItemName;
            //this.TenantId = 1;
        }

    }
}
